package com.example.service.impl;

import java.util.List;

import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.dao.SysUserDao;
import com.example.entity.SysUser;
import com.example.service.ISysUserService;

@Service
public class SysUserServiceImpl implements ISysUserService {
	
	@Autowired
	private SysUserDao sysUserDao;

	@SuppressWarnings("unchecked")
	@Override
	public List<SysUser> getAll() {
		//return sysUserDao.all(0, 10);
		PageQuery query = new PageQuery();
		query.setPageNumber(1);
		query.setPageSize(10);
		sysUserDao.queryNewUser(query);
		return query.getList();
	}

}
